<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
*{
	font-family:微软雅黑;
}


	</style>
</head>
<body>
<form action="">
	<p>name:</p>

	<p><input type="text"></p>
	<p>code:</p>
	<p><input type="text"></p>
	<p>yanzhengma:</p>
	<p><input type="text" id='veryfy'></p>
	<p><input type="submit" value='ok'></p>
	
</form>
	
</body>
<script type="text/javascript">
	vobj=document.getElementById('veryfy');
	vobj.onkeyup=function(){
		val=this.value;
		val2=val.toUpperCase();
		this.value=val2;
	}
</script>
</html>